package com.kusen.spring.constructor;


import org.springframework.stereotype.Component;

/**
 * 模拟练习循环依赖构造器依赖,模拟类A
 */
@Component
public class ServiceA {
    private ServiceB serviceB;

    /**
     * 构造器注入A
     *
     * @param serviceB
     */
    public ServiceA(ServiceB serviceB) {
        this.serviceB = serviceB;
    }
}
